import 'package:fish_redux/fish_redux.dart';
import '../model/order_view_model.dart';

class SafeOrderViewState implements Cloneable<SafeOrderViewState> {
  String gasNo;
  bool isLoad = false;
  bool isEmpty;
  List<OrderConfigModel> items;
  List orderPhoto = [];
  int orderStatus;
  var orderSignPhoto;
  String lastTime;

  @override
  SafeOrderViewState clone() {
    return SafeOrderViewState()
      ..gasNo = gasNo
      ..isLoad = isLoad
      ..isEmpty = isEmpty
      ..items = items
      ..orderPhoto = orderPhoto
      ..orderStatus = orderStatus
      ..orderSignPhoto = orderSignPhoto
      ..lastTime = lastTime;
  }
}

SafeOrderViewState initState(Map<String, dynamic> args) {
  return SafeOrderViewState()..gasNo = args['gasNo'];
}
